//
//  VidsViewController.m
//  News_lzz
//
//  Created by qianfeng01 on 15-6-14.
//  Copyright (c) 2015年 李忠. All rights reserved.
//

#import "VidsViewController.h"

@interface VidsViewController ()

@end

@implementation VidsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self firstDo];
    [self requestNetAndDownloadDataWithUrlType:self.typeArr[0]];
}

- (void)firstDo {
    self.tableView.rowHeight = 194;
    [self.tableView registerNib:[UINib nibWithNibName:@"PicsCell" bundle:nil] forCellReuseIdentifier:@"PicsCell"];
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    PicsCell *picsCell = [tableView dequeueReusableCellWithIdentifier:@"PicsCell" forIndexPath:indexPath];
    picsCell.type = self.typeArr[0];
    return [picsCell setCellWithModel:self.dataArr[indexPath.row]];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
